@php use Hyperf\View\RenderInterface; @endphp
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
hello {{$name}} !
</body>
</html>

<?php
public function view(RenderInterface $render){
    return $render->render('hello', ['name' => 'Zyblog']);
}
?>